<!DOCTYPE html>
<html>
  <head lang="en">
    <meta charset="UTF-8" />
    <title>Viewer</title>
    <!-- Editor -->
    <link rel="stylesheet" href="http://localhost:8080/dist/toastui-editor-viewer.css" />
    <!-- Plugin -->
    <link rel="stylesheet" href="https://uicdn.toast.com/tui.chart/v3.7.0/tui-chart.css" />
  </head>
  <body>
    <div class="code-html">
      <div id="viewer"></div>
    </div>
    <!-- Added to check demo page in Internet Explorer -->
    <script src="https://unpkg.com/babel-standalone@6.26.0/babel.min.js"></script>
    <!-- jQuery -->
    <script src="https://code.jquery.com/jquery-3.4.1.js"></script>
    <!-- jQuery Wrapper of Viewer -->
    <script src="../dist/cdn/toastui-jquery-editor-viewer.js"></script>
    <script type="text/babel" class="code-js">
      const content = [
        '![image](https://uicdn.toast.com/toastui/img/tui-editor-bi.png)',
        '',
        '# Heading 1',
        '## Heading 2',
        '### Heading 3',
        '#### Heading 4',
        '##### Heading 5',
        '###### Heading 6',
        '',
        '**bold** *italic* ~~strikethrough~~',
        '<span style="color:#e11d21;">Color Syntax</span>',
        '[link](https://nhn.github.io/tui.editor/)',
        '',
        '---',
        'horizontal line',
        '***',
        '',
        '> block quote',
        '>> block quote (2 depth)',
        '>>> block quote (3 depth)',
        '',
        '* list',
        '    * list indented',
        '1. ordered',
        '2. list',
        '    1. ordered list',
        '    2. indented',
        '',
        '- [ ] task',
        '- [x] list completed',
        '',
        '`inline code`',
        '',
        '    code block',
        '```js',
        'console.log("fenced code block");',
        '```',
        '<pre>**HTML block**</pre>',
        '',
        '| table | head |',
        '| ----  | ---- |',
        '| table | body |'
      ].join('\n');

      $('#viewer').toastuiEditor({
        viewer: true,
        previewStyle: 'vertical',
        height: '500px',
        initialValue: content
      });
    </script>
  </body>
</html>
